package lab02.test13;

public class School extends ComputerAverage {


    @Override
    double average(double[] scores) {

        //求总分和

        double sum = 0;
        for (int i = 0; i < scores.length - 1; i++) {
            sum += scores[i];
        }

        //求平均分

        double average;
        average = sum / scores.length;
        return average;
    }
}
